package inits

import (
	"flag"
	"log"
	"zk2/you-ku-dev/api-getaway/basic/config"
	"zk2/you-ku-dev/api-getaway/basic/proto"

	"google.golang.org/grpc"
	"google.golang.org/grpc/credentials/insecure"
)

func Grpc() {
	flag.Parse()
	// Set up a connection to the server.
	conn, err := grpc.NewClient("127.0.0.1:50051", grpc.WithTransportCredentials(insecure.NewCredentials()))
	if err != nil {
		log.Fatalf("did not connect: %v", err)
	}
	config.VideoClient = __.NewVideoClient(conn)

}
